package com.cc.dao;

import com.cc.entity.employee;
import javafx.scene.control.IndexRange;

import java.sql.SQLException;
import java.util.List;

public interface employeeDao {
    //获取所有员工
    public List<employee> getAll(String empname);

    int add(employee employee);
    employee getEdit(int id);

    int UpdateEmq(employee e);

    int delete(int e);

    //分页查询
    public List<employee> getPage(int pageNum, int pageSize,String empName);
    //获取总记录数
    public int getTotalCount(String empName);

}
